package com.video.mall.domain.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author la
 * @since 2024-11-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("product")
@ApiModel(value = "Product对象", description = "商品表")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;


    @ApiModelProperty(value = "商品封面图")
    private String goodsCover;

    @ApiModelProperty(value = "收藏人数")
    private Integer collectSize;

    @ApiModelProperty(value = "是否为超值")
    private Boolean overBalance;

    @ApiModelProperty(value = "超值价")
    private BigDecimal overBalancePrice;

    @ApiModelProperty(value = "正常价格")
    private BigDecimal price;

    @ApiModelProperty(value = "是否满减")
    private Boolean maxOut;

    @ApiModelProperty(value = "满减需要达到的金额")
    private Integer maxOutPrice;

    @ApiModelProperty(value = "满减金额")
    private Integer maxOutSubtract;

    @ApiModelProperty(value = "销售数量")
    private Integer sales;

    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    @ApiModelProperty(value = "更新时间")
    private Long updateTime;


}
